﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/App.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    登 录
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
       登录</h2>
    <p>
        请输入你的帐户及密码. 新用户注册请按<%= Html.ActionLink("这里", "Register")%>
    </p>
    <%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       { %>
    <div>
        <fieldset class="cssform">
            <legend>账号信息</legend>
            <p>
                <label for="username">
                    用户名:</label>
                <%= Html.TextBox("username") %>
                <%= Html.ValidationMessage("username") %>
            </p>
            <p>
                <label for="password">
                    密 码:</label>
                <%= Html.Password("password") %>
                <%= Html.ValidationMessage("password") %>
            </p>
            <p>
                <label class="inline" for="rememberMe">
                    永久登录?</label>
                <%= Html.CheckBox("rememberMe") %>
            </p>
            <p>
                <input type="submit" value="登录" class="ui-state-default ui-corner-all" />
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
